package com.ljr.v2;

import java.util.List;
import java.util.Map;

/**
 * @description: 接口指标存储器
 * @author: lijunrong
 * @create: 2022/1/18 7:14 PM
 */
public interface MetricsStorage {

    void saveRequestInfo(RequestInfo requestInfo);

    List<RequestInfo> selectRequestInfos(String apiKey, long beginTime, long endTime);

    Map<String,List<RequestInfo>> selectRequestInfos(long beginTime, long endTime);

}
